package com.jiukuaidao.zhulin.data;

import android.content.Context;
import android.support.annotation.NonNull;

import com.jiukuaidao.zhulin.module.address.contract.AddressManagerContract;
import com.jiukuaidao.zhulin.module.address.model.AddressModel;
import com.jiukuaidao.zhulin.module.commodity.contract.SortContract;
import com.jiukuaidao.zhulin.module.commodity.contract.SortProContract;
import com.jiukuaidao.zhulin.module.commodity.model.SortModel;
import com.jiukuaidao.zhulin.module.commodity.model.SortProModel;
import com.jiukuaidao.zhulin.module.home.contract.HomeContract;
import com.jiukuaidao.zhulin.module.home.model.HomeModel;
import com.jiukuaidao.zhulin.module.order.contract.OrderListContract;
import com.jiukuaidao.zhulin.module.order.model.OrderListModel;

/**
 * Author : BinarySatan
 * Date : 2016/5/20
 * Description :
 */
public class TaskProvider {

    public static TasksRepository provideTasksRepository(@NonNull Context context) {
        return TasksRepository.getInstance();
    }

    public static HomeContract.Model provideHomeRepository(@NonNull Context context) {
        return new HomeModel(context);
    }

    public static SortContract.Model provideSortRepository(@NonNull Context context) {
        return new SortModel(context);
    }

    public static SortProContract.Model provideSortProRepository(@NonNull Context context) {
        return new SortProModel(context);
    }

    public static AddressManagerContract.Model provideAddressRepository(@NonNull Context context) {
        return new AddressModel(context);
    }

    public static OrderListContract.Model provideOrderListRepository(@NonNull Context context) {
        return new OrderListModel(context);
    }

}
